package com.example.controller;

import com.example.pojo.OperateLog;
import com.example.pojo.Result;
import com.example.service.AopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class AopContruller {
    @Autowired
    private AopService aopService;
    @GetMapping("/log/page")
    public Result logPage(@RequestParam(defaultValue = "1") Integer page,
                          @RequestParam(defaultValue = "5") Integer pageSize){
        return Result.success(aopService.findPage(page,pageSize));
    }
}
